package com.wyl.auth.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* @Description 用户操作日志
* @Author WuYiLong
* @Date 2025-04-16
*/
@Data
@ApiModel(value = "UserOperationLogVo对象", description = "用户操作日志")
public class UserOperationLogVo implements Serializable {
private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "请求路径")
    private String requestPath;

    @ApiModelProperty(value = "请求路径名称")
    private String requestPathName;

    @ApiModelProperty(value = "ip地址")
    private String ipAddress;

    @ApiModelProperty(value = "耗时（秒）")
    private Long timeCost;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
